const { sequelize } = require("../../core/db");
const { Sequelize, Model } = require("sequelize");

class TextMsg extends Model {}

TextMsg.init(
  {
    testmsg_id: {
      type: Sequelize.INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },
    text_name: Sequelize.STRING,
    admin_id: {
      type: Sequelize.STRING,
    },
    access_key_id: Sequelize.STRING,
    secret_access_key: Sequelize.STRING,
    sign_name: Sequelize.STRING,
    template_code: Sequelize.STRING,
    template_param: Sequelize.STRING,
  },
  {
    sequelize,
    tableName: "textmsg",
  }
);

module.exports = {
  TextMsg,
};
